import com.practice2.exercise.User;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {

    @Test
    public void testUser() {

        ClassPathXmlApplicationContext userTestXml =
                new ClassPathXmlApplicationContext("user.xml");

       User user = (User) userTestXml.getBean("user1");
       user.toString();

    }

}
